package com.comtop.springboot.templet.common.utils;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * 查询参数
 *
 * @author wangjiafang
 * @version 1.0
 * @since 2017-03-14 23:15
 */
public class QueryMap extends LinkedHashMap<String, Object> {
	private static final long serialVersionUID = 1L;
	//当前页码
    private int current;
    //每页条数
    private int size;

    public QueryMap(Map<String, Object> params){
        this.putAll(params);
        //分页参数
        this.current = Integer.parseInt(params.get("current").toString());
        this.size = Integer.parseInt(params.get("size").toString());

    }
    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }
}
